﻿using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace HobSoft.SoccerBet2014.Domain.DataService
{
    using Core;
    using Models;
    using Models.BfRaw;
    using Models.Site;
    /// <summary>
    /// 管理必发的具体业务请求
    /// </summary>
    public interface IBfManagerService : IService
    {
        Encoding Encoding { get; set; }
        int Timeout { get; set; }
        ILoginInfo LoginInfo { get; }
        BFAccount Account { get; }

        Task<bool> Signup(string certificateFile);
        Task<IList<MarketBook>> ListMarketBook(params string[] marketIds);
        Task<PlaceExecutionReport> Betting(string marketId, PlaceInstruction placeInstruction, string customerRef);
        Task<CurrentOrderSummaryReport> ListOrders();
        Task<CancelExecutionReport> CancelOrders(string _marketId, CancelInstruction _instruction, string _customerRef);
    }
}
